package com.hd.trans.network.component

import com.hd.trans.network.bean.UserInfoBean

class TtsConfig {
    var userInfoBean: UserInfoBean? = null
    var ttsCode: String? = null
    var type: String? = null //可以用值（类型）： aac（默认值）、mp3、m4a、wav、flac
    var pitch: Float = 1.0f

    private constructor()

    companion object {
        fun createConfig(): TtsConfig{
            return TtsConfig()
        }
    }

    fun setUserInfoBean(bean: UserInfoBean?): TtsConfig {
        userInfoBean = bean
        return this
    }

    fun setTtsCode(code: String): TtsConfig {
        ttsCode = code
        return this
    }

    fun setPitch(pitch: Float): TtsConfig {
        this.pitch = pitch
        return this
    }

    fun setType(suffix: String): TtsConfig {
        this.type = suffix
        return this
    }
}